home *** CD-ROM | disk | FTP | other *** search
/ USA Bestseller / USA BESTSELLER Vol 1-95 (Hepp-Computer)(1995).iso / e214 / hyperups.txt < prev    next >
Text File  |  1994-10-17  |  5KB  |  124 lines

  1. UPS Monitor
  2.  
  3. HyperDisk can monitor the status of any Uninterruptable Power Supply (UPS) that
  4. has a serial port.  This is very useful for machines that are run unattended
  5. such as file servers and communiation workstations.  By monitoring the UPS,
  6. HyperDisk can help prevent data loss by shutting down whenever the computer is
  7. not running on normal power.  This helps prevent any data that would be in a
  8. "staged write" buffer from being lost by turning off staged writes whenever
  9. normal power is not being used.
  10.  
  11. The UPS Monitoring function is very flexible and can monitor any I/O port
  12. for active signals.  Multiple signals can be monitored as well as signals with
  13. different polarity.
  14.  
  15. The UPS Monitoring function can work in conjuntion with other monitors such
  16. as the monitors built into Lantastic and Novell.
  17.  
  18.  
  19. Use the UP: parameter to set up the UPS Monitoring function.
  20.  
  21. UP:{IoPort}:{IoPolarity}:{IoMask}:{CacheMask}[:{PollSeconds}[:{PollCount}]]
  22.  
  23.   Items in {} are required, item in [] optional.
  24.  
  25.  
  26.     IoPort  Input port address. This is the address of the port to be monitored.
  27.             This number must be in Hexidecimal format.
  28.  
  29.  
  30. IoPolarity  Inverts sense of input port bits.  Normally the monitor looks for a
  31.             "high" signal for a true occurance of a state.  By switching the
  32.             polarity, the monitor will look for a low occurance of the state.
  33.             0 does not change value
  34.             1 inverts bits sense
  35.  
  36.     IoMask  Determines which bits to test for non-zero conditions.
  37.             0 drops bit from test
  38.             1 retains IoPort bit value.
  39.             Non-Zero results indicates active UPS (AC power off)
  40.             Zero results indicates inactive UPS (AC power on)
  41.  
  42.  CacheMask  is a bit field
  43.             1 disables function if this bit occurs
  44.             0 no change to function if this bit occurs
  45.  
  46.             Bit BitName        A one (1) will disable the corresponding function
  47.  
  48.              0  StagedFloppy   Stage Write floppy drive write operations
  49.              1  StagedHard     Stage Write hard drive write operations
  50.              2  VerifyFloppy   Verify floppy drive write operations
  51.              3  VerifyHard     Verify hard drive write operations
  52.              4  Reserved0      Reserved always 0
  53.              5  Reserved1      Reserved always 0
  54.              6  FloppyEnable   Enable floppy caching
  55.              7  CacheEnabled   Enable all caching functions
  56.  
  57.  
  58. PollSeconds Sets the period in seconds to sample IoPort value.  Every nn
  59.             seconds the I/O port will be checked for changes in status.
  60.  
  61. PollCount   Sets the number of identical IoPort samples before changeing
  62.             the cache state.  This tells the monitor how many times it should
  63.             wait after seeing a change in the state of the UPS before it should
  64.             change the status of the cache.  This helps keep the cache from
  65.             changing states if the UPS just goes onto battery power for a
  66.             moment such as during a brown out.
  67.  
  68.  
  69.  
  70. IoMask Values for COM port based UPS monitoring system
  71.  
  72.   To set the IOMask values you must determine which pin on the I/O port you
  73.   are going to use to monitor the UPS.  Most of the UPS' use the Carrier
  74.   Detect Pin on a PC serial port to monitor the UPS status.
  75.  
  76.   To calculate the IOPort address to use you must first determine which
  77.   port you are going to be monitoring, then, calculate the offset to the
  78.   port register that you will be using.  In most cases you will be using a
  79.   serial port at either COM1 or COM2 and monitoring the Modem Status Register.
  80.   To monitor the Modem Status Register on COM1 you would calculate the following
  81.   address:
  82.  
  83.   COM1 is generally located at 3F8.
  84.   COM2 is generally located at 2F8.
  85.   Modem Status Register is 6 Bytes from the port address.
  86.   The IOPort address would be 3F8 (COM1) + 6 (MSR) = 3FE for COM1
  87.   The IOPort address would be 2F8 (COM2) + 6 (MSR) = 2FE for COM2
  88.  
  89.  
  90. Below is a list of the common pins used to monitor UPS functions.
  91.  
  92. 9-Pin Port  25-Pin Port   Signal Name     IoMask     IoPolarity
  93.  
  94. Pin 1       Pin-8         Carrier Detect    80            00
  95.  
  96. Pin 6       Pin-6         Data Set Ready    20            00
  97.  
  98. Pin 8       Pin-5         Clear To Send     10            00
  99.  
  100. Pin 9       Pin-22        Ring Indicator    40            00
  101.  
  102.  
  103. To make your own cable for the American Power Conversion (APC) UPS follow the
  104. pin-out details below:
  105.  
  106.  
  107.  APC 9 pin interface               Computer 9 pin interface
  108.  
  109.  Cable end: Male (Pins)            Cable end: Female (Sockets)
  110.  
  111.  
  112.    Pin 2 - AC Power Fault------------------Pin 1 - Modem Data Carrier Detect
  113.  
  114.    Pin 4 - Signal Ground-------------------Pin 5 - Signal Ground
  115.  
  116.  
  117. Example:
  118.  
  119.  Monitor COM2, Modem Status port: Bit 7, Carrier Detect, normal polarity
  120.  If power fails disable Staged Writes on both hard and floppy drives
  121.  30 second sample period, 3 matching samples indicates active/inactive UPS
  122.  
  123.    HYPERDK UP:2FE:0:80:3:30:3
  124.